<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
<script src="../resources/Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
<link href="../resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
<script src="../resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="../resources/Scripts/jquery.validate.unobtrusive.min.js"
	type="text/javascript"></script>

<script src="../resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
<link href="../resources/Res/easyui/themes/icon.css" rel="stylesheet"
	type="text/css" />
<link href="../resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
	type="text/css" />
<link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
<title></title>
<script type="text/javascript"
	src="../resources/Res/ueditor1_4_3-gbk-net/ueditor.config.js"></script>
<script type="text/javascript"
	src="../resources/Res/ueditor1_4_3-gbk-net/ueditor.all.min.js"></script>
<script type="text/javascript" charset="gbk"
	src="../resources/Res/ueditor1_4_3-gbk-net/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
/* 	$(function() {

		$("#submit").click(function() {

			if ($("#C_no").val() == "") {
				$.messager.alert('系统提示：', '请输入车牌号！', 'warning');
				return false;
			}

			if ($("#C_sno").val() == "") {
				$.messager.alert('系统提示：', '请输入车牌小号！', 'warning');
				return false;
			}

			if ($("#fenxiaoID").combobox("getValue") == "") {
				$.messager.alert('系统提示：', '请选择所在分校！', 'warning');
				return false;
			}
			if ($("#C_LCdanjia").val() < 0) {
				$.messager.alert('系统提示：', '请输入练车单价！', 'warning');
				return false;
			}
			$("#C_Content").val(escape(UE.getEditor('editor').getContent()));
		});

		var url = '../resources/../resources/S_Employees/getS_EmployeesByfx/?fxID=2014033114432090614426dd681c9f6';
		//alert(url);
		$("#jiaolianID").combobox({
			url : url,
			valueField : 'id',
			panelHeight : 'auto',
			textField : 'text'
		}).combobox('clear');
		$('#jiaolianID').combobox('select', "");

		$("#fenxiaoID").combobox(
				{
					onSelect : function(record) {
						//alert(record.value);
						var url = '../resources/../resources/S_Employees/getS_EmployeesByfx/?fxID='
								+ record.value;
						//alert(url);
						$("#jiaolianID").combobox({
							url : url,
							valueField : 'id',
							panelHeight : 'auto',
							textField : 'text'
						}).combobox('clear');
					
					}
				});

	});

	function tabClose() {
		parent.closeCurrTab($("#C_no").val());
		
		window.location.href = history.go(-1);  
	} */
</script>

<script type='text/javascript'>
/* 	function ajaxFrom(form, url) {
		progressComm();
		$.ajax({
			url : url,
			type : "Post",
			data : $(form).serialize(),
			dataType : "json",
			success : function(data) {
				$.messager.progress('close');
				if ($.messager) {
					$.messager.defaults.ok = '继续修改';
					$.messager.defaults.cancel = '返回列表';
					//window.parent.shuaxin();
					$.messager.confirm('操作提示', data, function(r) {
						if (!r) {
							tabClose();
						}
					});
				}

			}
		});
	}

	$(function() {

		$("form").submit(function(form) {
			if (form.result) {
				ajaxFrom(this, this.action);
			}
			return false;
		});
	}); */
</script>
</head>
<body>
	<div class="mbx">修改 车辆信息</div>
	<form action="/updateCarInfo" method="post">

		<fieldset>
				<legend>
				<input class="submitcss" type="submit" id="submit" value="修改" /> 
				<input class="submitcss" type="button"  onclick="window.location.href = 'javascript:history.go(-1)';"  value="返回" />   
				</legend>
			<div class="bigdiv">
				<input id="pk_id" name="pk_id" type="hidden"
					value="2017122610182897155931ab8595f58" /> <input data-val="true"
					data-val-number="字段 分配状态 必须是一个数字。" data-val-range="数值超出范围"
					data-val-range-max="2147483646" data-val-range-min="0" id="fpstate"
					name="fpstate" type="hidden" value="1" /> <input type="hidden"
					name="cno" value="${cfo.ciPlatenumber}" /> <input type="hidden" name="csno"
					value="006" />
				<div class="editor-label">
					<label for="C_no">车牌号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_no"
						name="ciPlatenumber" type="text" value="${cfo.ciPlatenumber}" /> <span
						class="field-validation-valid" data-valmsg-for="C_no"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="ciId">车牌小号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_sno"
						name="C_sno" type="text" value="${cfo.ciId}" /> <span
						class="field-validation-valid" data-valmsg-for="C_sno"
						data-valmsg-replace="true"></span>
				</div>

				<div class="editor-label">
					<label for="fenxiaoID">所在分校</label>
				</div>
				<div class="editor-field">
					<select class="easyui-combobox" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36"
						editable="false" id="fenxiaoID" name="ciBranchschool"
						panelHeight="auto" style="width: 210px;"><option value="${cfo.ciBranchschool}">${cfo.ciBranchschool}</option>
					<!-- 	<option selected="selected" value="总校">总校</option> -->
						<option value="总校">总校</option>
						<option value="挂靠 ">挂靠</option>
					</select>
				</div>
				<div class="editor-label">
					<label for="C_LCdanjia">练车单价</label>：
				</div>
				<div class="editor-field">
					<input id="C_LCdanjia" name="ciUnitprice" style="width: 116px;"
						value="${cfo.ciUnitprice }" class="easyui-numberbox"
						data-options="precision:2,groupSeparator:','" /> <span>元/分钟</span>
					<span class="field-validation-valid" data-valmsg-for="C_LCdanjia"
						data-valmsg-replace="true"></span>
				</div>

				<br style="clear: both;" />
				<!--车辆照片-->
		<%-- 		<div class="editor-label">
					<label for="C_Content">车辆详情</label>
				</div>
				<div class="editor-field" style="height: 380px;">
					<script id="editor" type="text/plain"
						style="width:660px;height:260px;"></script>
					<input id="C_Content" name="C_Content" type="hidden"
						value="${cfo.ciParticulars}" />
				</div> --%>
				<!--车辆照片-->

				<br style="clear: both;" />
				<div class="editor-label">
					<label for="C_Pno">场地编号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_Pno"
						name="ciSitenumber" type="text" value="${cfo.ciSitenumber}" /> <span
						class="field-validation-valid" data-valmsg-for="C_Pno"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="ctId">车型代码</label>
				</div>
				<div class="editor-field">
					<select data-val="true" data-val-length="长度不可超过36"
						data-val-length-max="36" id="C_type" name="ctId"><option
							value="${cfo.ctId}">请选择</option>
						<option value="A">A</option>
						<option value="B">B</option>
						<option value="C">C</option>
					</select>
				</div>
				<div class="editor-label">
					<label for="C_team">所属车队</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="C_team"
						name="ciMotorcade" type="text" value="${cfo.ciMotorcade}" /> <span
						class="field-validation-valid" data-valmsg-for="C_team"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_master">车主</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="C_master"
						name="ciOwner" type="text" value=" ${cfo.ciOwner}" /> <span
						class="field-validation-valid" data-valmsg-for="C_master"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_farno">车架号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="C_farno"
						name="ciFrameno" type="text" value="${cfo.ciFrameno}" /> <span
						class="field-validation-valid" data-valmsg-for="C_farno"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_add">地址</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="C_add"
						name="ciAddress" type="text" value="${cfo.ciAddress}" /> <span
						class="field-validation-valid" data-valmsg-for="C_add"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_moterno">发动机号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_moterno"
						name="ciEngine" type="text" value="${cfo.ciEngine}" /> <span
						class="field-validation-valid" data-valmsg-for="C_moterno"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_fmode">厂牌型号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_fmode"
						name="ciFactoryplatemodel" type="text" value="${cfo.ciFactoryplatemodel}" /> <span
						class="field-validation-valid" data-valmsg-for="C_fmode"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_regdate">登记日期</label>
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="C_regdate" name="C_regdate"
						style="width: 214px;" type="text" value="${cfo.ciRecorddate}" /> <span
						class="field-validation-valid" data-valmsg-for="C_regdate"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_sales">销售单位</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_sales"
						name="C_sales" type="text" value="${cfo.ciMarketingunit}" /> <span
						class="field-validation-valid" data-valmsg-for="C_sales"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_filesNo">档案编号</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_filesNo"
						name="C_filesNo" type="text" value="${cfo.ciRecordno}" /> <span
						class="field-validation-valid" data-valmsg-for="C_filesNo"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_usedate">发证日期</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_usedate"
						name="C_usedate" type="text" value="${cfo.ciCertificatetime}" /> <span
						class="field-validation-valid" data-valmsg-for="C_usedate"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_smile">初始里程</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-number="字段 初始里程 必须是一个数字。" id="C_smile" name="C_smile"
						type="text" value="${cfo.ciInitmileage}" /> <span class="field-validation-valid"
						data-valmsg-for="C_smile" data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_colour">车颜色</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_colour"
						name="C_colour" type="text" value="${cfo.ciColor}" /> <span
						class="field-validation-valid" data-valmsg-for="C_colour"
						data-valmsg-replace="true"></span>
				</div>

				<div class="editor-label">
					<label for="C_YearAsOfDate">年审截止日期</label>：
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="C_YearAsOfDate"
						name="C_YearAsOfDate" style="width: 214px;" type="text" value="${cfo.ciAnnualcheckEndtime}" />
					<span class="field-validation-valid"
						data-valmsg-for="C_YearAsOfDate" data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_WarrantyAsOfDate">保修截止日期</label>：
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="C_WarrantyAsOfDate"
						name="C_WarrantyAsOfDate" style="width: 214px;" type="text"
						value="${cfo.ciWarrantyEndtime}" /> <span class="field-validation-valid"
						data-valmsg-for="C_WarrantyAsOfDate" data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_SecWarrantyAsOfDate">二级维护截止日期</label>：
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="C_SecWarrantyAsOfDate"
						name="C_SecWarrantyAsOfDate" style="width: 214px;" type="text"
						value="${cfo.ciCompletemaintenance}" /> <span class="field-validation-valid"
						data-valmsg-for="C_SecWarrantyAsOfDate" data-valmsg-replace="true"></span>
				</div>

				<br style="clear: both;" />
				<div class="editor-label">
					<label for="C_use">车辆历史违章及事故</label>
				</div>
				<div class="textarea-box">
					<textarea cols="20" data-val="true" data-val-length="长度不可超过550"
						data-val-length-max="550" id="C_use" name="C_use" rows="2" >
</textarea>
					<span class="field-validation-valid" data-valmsg-for="C_use"
						data-valmsg-replace="true" value="${cfo.ciBreakrolesEvent}"></span>
				</div>
				<div class="editor-label">
					<label for="FK_repairid">修理单位ID</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36"
						id="FK_repairid" name="FK_repairid" type="text" value="${cfo.ciRepairfactory}" /> <span
						class="field-validation-valid" data-valmsg-for="FK_repairid"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_dirver">司机</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_dirver"
						name="C_dirver" type="text" value="${cfo.ciDriver}" /> <span
						class="field-validation-valid" data-valmsg-for="C_dirver"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_checktype">审核状态</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36"
						id="C_checktype" name="C_checktype" type="text" value="${cfo.ciCheckstatus}" /> <span
						class="field-validation-valid" data-valmsg-for="C_checktype"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_GPSNO">身份证号(驾驶员)</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过50" data-val-length-max="50" id="C_GPSNO"
						name="C_GPSNO" type="text" value="${cfo.ciIdentityid}" /> <span
						class="field-validation-valid" data-valmsg-for="C_GPSNO"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_GPStype">联系电话(驾驶员)</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="C_GPStype"
						name="C_GPStype" type="text" value="${cfo.ciTelephonenumber}" /> <span
						class="field-validation-valid" data-valmsg-for="C_GPStype"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_remark">备注</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过16" data-val-length-max="16" id="C_remark"
						name="C_remark" type="text" value="${cfo.ciMemo}" /> <span
						class="field-validation-valid" data-valmsg-for="C_remark"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="FK_USER">录入人</label>
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过36" data-val-length-max="36" id="FK_USER"
						name="FK_USER" type="text" value="${cfo.ciRecorder}" /> <span
						class="field-validation-valid" data-valmsg-for="FK_USER"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="C_update">录入时间</label>
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="C_update" name="C_update"
						style="width: 214px;" type="text" value="${cfo.ciRecordtime}" /> <span
						class="field-validation-valid" data-valmsg-for="C_update"
						data-valmsg-replace="true"></span>
				</div>
			</div>

			<script type="text/javascript">
				var ue = UE.getEditor('editor');
			</script>
		</fieldset>

	</form>
</body>
</html>
